Home:ALL Converter>How do you extract images from PDF using Swift?

How do you extract images from PDF using Swift?

Ask Time:2018-11-24T21:34:07         Author:Debee

Json Formatter

I understand PDFKit allows extracting text+formatting as NSAttributedString, but I can't find any info on extracting each individual figures from any PDF document using Swift.

Any help would be greatly appreciated, thanks!

edit: https://stackoverflow.com/a/40788449/2303865 explains how to convert the whole page into image, however I need to parse all images already part of the a series of PDF documents, without knowing where they are located, so that solution is not appropriate to my question.

Author:Debee,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53458670/how-do-you-extract-images-from-pdf-using-swift
yy